package cn.zh.npro.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import cn.zh.npro.R;

public class Safy extends BaseActivity {
   ImageView mc_back;
    LinearLayout changeps,bindph;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_safy);
        initsf();
      }

    public void initsf(){
        mc_back=findViewById(R.id.mc_back);
        changeps=findViewById(R.id.changeps);
        bindph=findViewById(R.id.bindph);
        mc_back.setOnClickListener(this);
        changeps.setOnClickListener(this);
        bindph.setOnClickListener(this);
        }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        int id=view.getId();
        switch (id){
            case R.id.mc_back:
                finish();
                break;
            case R.id.changeps:
                //修改密码
                Intent intent=new Intent(Safy.this,ChangePs.class);
                startActivity(intent);
                break;
            case R.id.bindph:
                //绑定手机号
                Intent intent1=new Intent(Safy.this,BindActivity.class);
                startActivity(intent1);
                break;
              }
          }


}
